<template>
  <div class="music-icon" @click="jumpMusicDetail">
    <img :src="song.pic_s192">
    <span>{{song.name}}</span>
  </div>
</template>

<script>
  export default {
    name: 'SongIcon.vue',
    props: {
      song: {
        type: Object
      }
    },
    methods: {
      jumpMusicDetail() {
        // console.log('in')
      }
    }
  }
</script>

<style scoped>
  .music-icon {
    width: 100px;
    height: 120px;
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .music-icon img {
    width: 100px;
    height: 100px;
    border-radius: 5px;
  }

  .music-icon span {
    font-size: 10px;
    margin-top: 5px;
    color: gray;
  }
</style>
